import { Module, forwardRef } from '@nestjs/common';
import { PassportModule } from '@nestjs/passport';

import { TeamController } from './team.controller';
import { TeamService } from './team.service';
import { teamProviders } from './schema/team.providers';
import { DatabaseModule } from '../database/database.module';

@Module({
  imports: [
    PassportModule.register({ defaultStrategy: 'jwt' }),
    DatabaseModule
  ],
  controllers: [TeamController],
  providers: [TeamService, ...teamProviders],
  exports: [TeamService]
})
export class TeamModule {}
